/*
 * @Author: wwssaabb
 * @Date: 2021-01-22 14:44:05
 * @LastEditTime: 2021-01-22 15:43:01
 * @FilePath: \sass_demo\js\demo5.js
 */


let str="Few things are impossible in themselves； and it is often for want of will, rather than of means, that man fails to."
let letterArr=str.split('')
let body=window.document.body
let content=window.document.createElement('div')
content.className="content"
for (let i = 0; i < letterArr.length; i++) {
  let letter=window.document.createElement('span')
  letter.className="letter"
  letter.innerText=letterArr[i]
  letter.style.animationDelay=i*0.1+'s';
  letter.style.animationFillMode="forwards";
  content.appendChild(letter)
}

body.appendChild(content)
